package vip.xiaonuo.biz.modular.order.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 分账订单实体
 *
 * @author SNOWY_TEAM
 *
 **/
@Getter
@Setter
@TableName("biz_fz_order")
public class BizFzOrder {

    /** 主键 */
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键", position = 1)
    private String id;

    /** 订单id */
    @ApiModelProperty(value = "订单id", position = 2)
    private String orderId;

    /** 票id */
    @ApiModelProperty(value = "票id", position = 3)
    private String ticketId;

    /** 订单总金额 */
    @ApiModelProperty(value = "订单总金额", position = 4)
    private BigDecimal price;

    /** 分账后剩余金额 */
    @ApiModelProperty(value = "分账后剩余金额", position = 5)
    private BigDecimal myMoney;

    /** 分账的总金额 */
    @ApiModelProperty(value = "分账的总金额", position = 6)
    private BigDecimal money;

    /** 微信分账单号 */
    @ApiModelProperty(value = "微信分账单号", position = 7)
    private String outOrderNo;

    /** 微信分账结果 */
    @ApiModelProperty(value = "微信分账结果", position = 8)
    private String wxProfitSharingResult;

    /** 分账订单创建时间 */
    @ApiModelProperty(value = "分账订单创建时间", position = 9)
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    /** 订单完成时间 */
    @ApiModelProperty(value = "订单完成时间", position = 10)
    private Date orderOverTime;

    /** DELETE_FLAG */
    @ApiModelProperty(value = "DELETE_FLAG", position = 11)
    @TableLogic
    @TableField(fill = FieldFill.INSERT)
    private String deleteFlag;

    /** CREATE_USER */
    @ApiModelProperty(value = "CREATE_USER", position = 12)
    @TableField(fill = FieldFill.INSERT)
    private String createUser;

    /** UPDATE_USER */
    @ApiModelProperty(value = "UPDATE_USER", position = 13)
    @TableField(fill = FieldFill.UPDATE)
    private String updateUser;

    /** UPDATE_TIME */
    @ApiModelProperty(value = "UPDATE_TIME", position = 14)
    @TableField(fill = FieldFill.UPDATE)
    private Date updateTime;
} 